<template>
	<view class="content">
		<u-cell-group title-bg-color="rgb(243, 244, 246)">
			<button class="shareBtn" v-for="(item, index) in indexList" :open-type="item.id==0?'share':''" @click="showToast(item)">
				<u-cell :titleStyle="{fontWeight: 500}" :title="item.text" :key="index" isLink :icon="item.icon"></u-cell>
			</button>
		</u-cell-group>

	</view>
</template>

<script>
	export default {
		name: "functionList",
		data() {
			return {
				indexList: [{
						id: "0",
						text: "邀请好友",
						icon: "weixin-fill"
					},
					{
						id: "1",
						text: "开源地址",
						icon: "attach"
					},
					{
						id: "2",
						text: "技术帮助",
						icon: "setting"
					}
				]
			}
		},

		computed: {

		},
		methods: {
			//列表激活
			showToast(item) {
				if(item.id=='1'){
					//开源地址
					uni.$u.toast("https://gitee.com/")
				}
				if(item.id=='2'){
					//技术帮助
					uni.$u.toast("联系QQ:1173089798；备注来意")
				}
			},

		
		}
	}
</script>

<style lang="scss">
	.content {
		width: 100%;
		background: #ffffff;
		border-radius: 20rpx;
		.shareBtn::after {
			border: none;
		}
		.shareBtn {
			width: 100%;
			text-align: left;
			padding-left: 0;
			padding-right: 0;
			background-color: #ffffff;
			border-radius: 0;
		}
	}
</style>
